//socket控件
class socketcol{    
    constructor(){
        this._socket = io(defines.serverUrl);        
    }

    requestwxlogin(){
        this._socket.on('welcome',(data)=>{
            console.log('welcome' + data);
        })
    }

    sendmessage(){
        this._socket.emit('message','message send');
    } 
}

const socketcontroller = new socketcol();
export default socketcontroller;